Optimal. Leaf size=145 \[ -\frac {4 a^4 \csc (c+d x)}{d}-\frac {2 a^4 \csc ^2(c+d x)}{d}-\frac {a^4 \csc ^3(c+d x)}{3 d}-\frac {4 a^4 \log (\sin (c+d x))}{d}-\frac {10 a^4 \sin (c+d x)}{d}-\frac {2 a^4 \sin ^2(c+d x)}{d}+\frac {4 a^4 \sin ^3(c+d x)}{3 d}+\frac {a^4 \sin ^4(c+d x)}{d}+\frac {a^4 \sin ^5(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2915, 12, 90}
\begin {gather*} \frac {a^4 \sin ^5(c+d x)}{5 d}+\frac {a^4 \sin ^4(c+d x)}{d}+\frac {4 a^4 \sin ^3(c+d x)}{3 d}-\frac {2 a^4 \sin ^2(c+d x)}{d}-\frac {10 a^4 \sin (c+d x)}{d}-\frac {a^4 \csc ^3(c+d x)}{3 d}-\frac {2 a^4 \csc ^2(c+d x)}{d}-\frac {4 a^4 \csc (c+d x)}{d}-\frac {4 a^4 \log (\sin (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 90
Rule 2915
Rubi steps
\begin {align*} \int \cos (c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^4 \, dx &=\frac {\text {Subst}\left (\int \frac {a^4 (a-x)^2 (a+x)^6}{x^4} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\text {Subst}\left (\int \frac {(a-x)^2 (a+x)^6}{x^4} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {\text {Subst}\left (\int \left (-10 a^4+\frac {a^8}{x^4}+\frac {4 a^7}{x^3}+\frac {4 a^6}{x^2}-\frac {4 a^5}{x}-4 a^3 x+4 a^2 x^2+4 a x^3+x^4\right ) \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=-\frac {4 a^4 \csc (c+d x)}{d}-\frac {2 a^4 \csc ^2(c+d x)}{d}-\frac {a^4 \csc ^3(c+d x)}{3 d}-\frac {4 a^4 \log (\sin (c+d x))}{d}-\frac {10 a^4 \sin (c+d x)}{d}-\frac {2 a^4 \sin ^2(c+d x)}{d}+\frac {4 a^4 \sin ^3(c+d x)}{3 d}+\frac {a^4 \sin ^4(c+d x)}{d}+\frac {a^4 \sin ^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 96, normalized size = 0.66 \begin {gather*} -\frac {a^4 \left (60 \csc (c+d x)+30 \csc ^2(c+d x)+5 \csc ^3(c+d x)+60 \log (\sin (c+d x))+150 \sin (c+d x)+30 \sin ^2(c+d x)-20 \sin ^3(c+d x)-15 \sin ^4(c+d x)-3 \sin ^5(c+d x)\right )}{15 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 242, normalized size = 1.67
method | result | size |
derivativedivides | \(\frac {a^{4} \left (-\frac {\cos ^{6}\left (d x +c \right )}{3 \sin \left (d x +c \right )^{3}}+\frac {\cos ^{6}\left (d x +c \right )}{\sin \left (d x +c \right )}+\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )\right )+4 a^{4} \left (-\frac {\cos ^{6}\left (d x +c \right )}{2 \sin \left (d x +c \right )^{2}}-\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{2}-\left (\cos ^{2}\left (d x +c \right )\right )-2 \ln \left (\sin \left (d x +c \right )\right )\right )+6 a^{4} \left (-\frac {\cos ^{6}\left (d x +c \right )}{\sin \left (d x +c \right )}-\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )\right )+4 a^{4} \left (\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {\left (\cos ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+\frac {a^{4} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}}{d}\) | \(242\) |
default | \(\frac {a^{4} \left (-\frac {\cos ^{6}\left (d x +c \right )}{3 \sin \left (d x +c \right )^{3}}+\frac {\cos ^{6}\left (d x +c \right )}{\sin \left (d x +c \right )}+\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )\right )+4 a^{4} \left (-\frac {\cos ^{6}\left (d x +c \right )}{2 \sin \left (d x +c \right )^{2}}-\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{2}-\left (\cos ^{2}\left (d x +c \right )\right )-2 \ln \left (\sin \left (d x +c \right )\right )\right )+6 a^{4} \left (-\frac {\cos ^{6}\left (d x +c \right )}{\sin \left (d x +c \right )}-\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )\right )+4 a^{4} \left (\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {\left (\cos ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+\frac {a^{4} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}}{d}\) | \(242\) |
risch | \(4 i a^{4} x -\frac {i a^{4} {\mathrm e}^{5 i \left (d x +c \right )}}{160 d}+\frac {a^{4} {\mathrm e}^{4 i \left (d x +c \right )}}{16 d}+\frac {19 i a^{4} {\mathrm e}^{3 i \left (d x +c \right )}}{96 d}+\frac {a^{4} {\mathrm e}^{2 i \left (d x +c \right )}}{4 d}+\frac {71 i a^{4} {\mathrm e}^{i \left (d x +c \right )}}{16 d}-\frac {71 i a^{4} {\mathrm e}^{-i \left (d x +c \right )}}{16 d}+\frac {a^{4} {\mathrm e}^{-2 i \left (d x +c \right )}}{4 d}-\frac {19 i a^{4} {\mathrm e}^{-3 i \left (d x +c \right )}}{96 d}+\frac {a^{4} {\mathrm e}^{-4 i \left (d x +c \right )}}{16 d}+\frac {i a^{4} {\mathrm e}^{-5 i \left (d x +c \right )}}{160 d}+\frac {8 i a^{4} c}{d}-\frac {8 i a^{4} \left (3 \,{\mathrm e}^{5 i \left (d x +c \right )}-7 \,{\mathrm e}^{3 i \left (d x +c \right )}+3 i {\mathrm e}^{4 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}-3 i {\mathrm e}^{2 i \left (d x +c \right )}\right )}{3 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{3}}-\frac {4 a^{4} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}\) | \(295\) |
norman | \(\frac {-\frac {a^{4}}{24 d}-\frac {a^{4} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 d}-\frac {7 a^{4} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}-\frac {199 a^{4} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d}-\frac {305 a^{4} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}-\frac {8111 a^{4} \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{60 d}-\frac {305 a^{4} \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}-\frac {199 a^{4} \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d}-\frac {7 a^{4} \left (\tan ^{14}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}-\frac {a^{4} \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d}-\frac {a^{4} \left (\tan ^{16}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}-\frac {a^{4} \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {a^{4} \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {19 a^{4} \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d}+\frac {19 a^{4} \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}-\frac {4 a^{4} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {4 a^{4} \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(342\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 119, normalized size = 0.82 \begin {gather*} \frac {3 \, a^{4} \sin \left (d x + c\right )^{5} + 15 \, a^{4} \sin \left (d x + c\right )^{4} + 20 \, a^{4} \sin \left (d x + c\right )^{3} - 30 \, a^{4} \sin \left (d x + c\right )^{2} - 60 \, a^{4} \log \left (\sin \left (d x + c\right )\right ) - 150 \, a^{4} \sin \left (d x + c\right ) - \frac {5 \, {\left (12 \, a^{4} \sin \left (d x + c\right )^{2} + 6 \, a^{4} \sin \left (d x + c\right ) + a^{4}\right )}}{\sin \left (d x + c\right )^{3}}}{15 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 172, normalized size = 1.19 \begin {gather*} -\frac {24 \, a^{4} \cos \left (d x + c\right )^{8} - 256 \, a^{4} \cos \left (d x + c\right )^{6} - 576 \, a^{4} \cos \left (d x + c\right )^{4} + 2304 \, a^{4} \cos \left (d x + c\right )^{2} - 1536 \, a^{4} + 480 \, {\left (a^{4} \cos \left (d x + c\right )^{2} - a^{4}\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) - 15 \, {\left (8 \, a^{4} \cos \left (d x + c\right )^{6} - 8 \, a^{4} \cos \left (d x + c\right )^{4} - 3 \, a^{4} \cos \left (d x + c\right )^{2} + 19 \, a^{4}\right )} \sin \left (d x + c\right )}{120 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.59, size = 135, normalized size = 0.93 \begin {gather*} \frac {3 \, a^{4} \sin \left (d x + c\right )^{5} + 15 \, a^{4} \sin \left (d x + c\right )^{4} + 20 \, a^{4} \sin \left (d x + c\right )^{3} - 30 \, a^{4} \sin \left (d x + c\right )^{2} - 60 \, a^{4} \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) - 150 \, a^{4} \sin \left (d x + c\right ) + \frac {5 \, {\left (22 \, a^{4} \sin \left (d x + c\right )^{3} - 12 \, a^{4} \sin \left (d x + c\right )^{2} - 6 \, a^{4} \sin \left (d x + c\right ) - a^{4}\right )}}{\sin \left (d x + c\right )^{3}}}{15 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.97, size = 378, normalized size = 2.61 \begin {gather*} \frac {4\,a^4\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}-\frac {a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24\,d}-\frac {4\,a^4\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {177\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}+68\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+640\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+84\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\frac {4549\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{5}+104\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+728\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+104\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\frac {745\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{3}+20\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\frac {56\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}+4\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {a^4}{3}}{d\,\left (8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}+40\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+80\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+80\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+40\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\right )}-\frac {17\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,d}-\frac {a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________